package com.yc.blog.springboot.event.demo1;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 使用@EventListener实现监听者
 */
@Component
public class Listener3 {

	@EventListener
	public void listenerMyEvent1(MyEvent1 event) {
		System.out.println("Listener3 收到事件通知：" + event.getMessage());
		//do something
	}

}
